package com.ly.system.system.bean.vo;

import lombok.Data;
import lombok.NoArgsConstructor;
import com.ly.system.system.bean.entity.SysUser;

/**
 * 用户头像-vo
 *
 * @author taoYan
 * @Date 2022/8/8 17:06
 **/
@Data
@NoArgsConstructor
public class UserAvatar {

    private String id;

    private String realname;

    private String avatar;

    public UserAvatar(SysUser sysUser) {
        this.id = sysUser.getId();
        this.realname = sysUser.getRealname();
        this.avatar = sysUser.getAvatar();
    }
}
